home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 001413_daemon _Thu Jun 24 09:53:57 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  5KB

  1. Received: by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  2.     id AA12125; Thu, 24 Jun 93 09:54:00 MET DST
  3. Return-Path: <dsr@hplb.hpl.hp.com>
  4. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  5.     id AA12121; Thu, 24 Jun 93 09:53:57 MET DST
  6. Received: from hplb.hpl.hp.com by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  7.     id AA04206; Thu, 24 Jun 1993 10:17:05 +0200
  8. Received: from dragget.hpl.hp.com by hplb.hpl.hp.com; Thu, 24 Jun 93 09:08:57 +0100
  9. Received: by manuel.hpl.hp.com
  10.     (16.6/15.6+ISC) id AA29086; Thu, 24 Jun 93 09:15:17 +0100
  11. From: Dave_Raggett <dsr@hplb.hpl.hp.com>
  12. Message-Id: <9306240815.AA29086@manuel.hpl.hp.com>
  13. Subject:  Re: link areas within images
  14. To: hoesel@chem.rug.nl
  15. Date: Thu, 24 Jun 93 9:15:14 BST
  16. Cc: www-talk@nxoc01.cern.ch
  17. Mailer: Elm [revision: 66.36.1.1]
  18.  
  19. > Is it too late to vote for non rectangular local(!) mouse support.
  20. > I want to show a picture of the ruins of pompeii (shown from above at an
  21. > angle of say 30 degree) and want people to be able to click on one off the
  22. > wall of a building. The wall can be a line running at an arbritary angle
  23. > over the screen,and could even be a bit irregular (around a chimney perhaps)
  24.  
  25. You are certainly not too late!
  26.  
  27. The current mechanism is uses the browser to recognise when the user
  28. clicks with the mouse over an active region of the image/drawing:
  29.  
  30. <!-- Figure anchors designate rectangular areas on the
  31.     figure which can be clicked with the mouse. The units
  32.     are scaled from 0.0 to 1.0 for each axis. The default
  33.     area is the whole of the figure. This mechanism
  34.     interprets mouse clicks locally.
  35. -->
  36.  
  37. <!ELEMENT FIGA - O (EMPTY)>
  38. <!ATTLIST FIGA
  39.     href    %URL;   #REQUIRED   -- link to traverse when clicked --
  40.     x1      NUMBER  #IMPLIED    -- left in range 0 to 1 --
  41.     y1      NUMBER  #IMPLIED    -- top in range 0 to 1 --
  42.     x2      NUMBER  #IMPLIED    -- right in range 0 to 1 --
  43.     y2      NUMBER  #IMPLIED    -- bottom in range 0 to 1 -->
  44.  
  45. To supported polygons as regions, we need a way of specifying a list of
  46. points. The obvious way is as a comma separated list of numbers:
  47.  
  48. The following is a triangle: (0.2, 0.3) (0.23, 0.33) (0.15, 0.31)
  49.  
  50.  
  51.         "0.2,0.3,0.23,0.33,0.15,0.31"  as  x1,y1,x2,y2,x3,y3,...
  52.  
  53. > some kind of highlight on the client site is needed, so if the user moves
  54. > the mouse over the wall (the line) it lights up or something equivalent, so
  55. > the user can see: 'he, this part of the wall does something, lets see it' or
  56. > 'hmm this part af the wall is connected to the part on the other side of the
  57. > chimney, and I have seen that already. lets skip this link'
  58.  
  59. As far as I can see, the browser can handle all this automatically, without
  60. any need for additional information. It could even examine the URL associated
  61. with each region to select a mouse cursor appropriate to the type of linked
  62. information, e.g. musical notes for sound sequences.
  63.  
  64. The new version of FIGA would look like:
  65.  
  66. <!ELEMENT FIGA - O (EMPTY)>
  67. <!ATTLIST FIGA
  68.     href   %URL;    #REQUIRED   -- link to traverse when clicked --
  69.     area   NUMBERS  #IMPLIED    -- x1,y1,x2,y2,x3,y3,... -->
  70.     
  71. The ISMAP mechanism with XMosaic's IMG tag gets the server to process mouse
  72. clicks, and hence can offer greater flexibility than a static collection of
  73. polygonal areas handled by the client, e.g. the active regions could vary
  74. with time in shape and effect.
  75.  
  76. <!ELEMENT FIG - - (EMBED?, FIGA*, (%text;)*)>
  77. <!ATTLIST FIG
  78.     id      ID      #IMPLIED
  79.     float  (float)  #IMPLIED -- fixed or floating figures --
  80.     ismap  (ismap)  #IMPLIED -- mouse clicks handled by server --
  81.     src     %URL;   #IMPLIED -- link to image data -->
  82.  
  83. The coordinates for clicks are measured in the same units as FIGA rather than
  84. IMG's pixel values which can't cope with objects such as drawings for which
  85. the pixel extent will vary from one browser to the next in an unpredictable
  86. way.
  87.  
  88. Example:
  89.  
  90.     <fig ismap src="http://chem.rug.nl/geo/nl.gif">
  91.         Major population centers in the Nederlands
  92.     </fig>
  93.  
  94. A mouse click over a city is sent to the server as:
  95.  
  96.         "http://chem.rug.nl/geo/nl.gif?X,Y"
  97.  
  98. with X and Y replaced by numbers in the range from 0 to 1.
  99.  
  100. In theory authors could combine both techniques. Clicks over areas defined
  101. with the FIGA tag are handled locally, while clicks over other parts of the
  102. image are sent to the server.
  103.  
  104. Does this seem OK?
  105.  
  106. Dave Raggett